package com.haima.sage.bigdata.api.service.impl;

import com.haima.sage.bigdata.api.dao.StorageRepository;
import com.haima.sage.bigdata.api.entity.storage.Storage;
import com.haima.sage.bigdata.api.service.StorageService;
import org.springframework.stereotype.Service;

import java.util.Optional;

@Service
public class StorageServiceImpl implements StorageService {
    private final StorageRepository repository;

    public StorageServiceImpl(StorageRepository repository) {
        this.repository = repository;
    }

    @Override
    public Optional<Storage> findById(String table) {
        return this.repository.findById(table);
    }
}
